home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
redtop
/
redtop.txt
< prev
next >
Wrap
Text File
|
1994-11-29
|
4KB
|
88 lines
The Screen Saver REDTOP.SCR is Freeware.
Requires: VBRUN300.DLL (not included)
PICCLIP.VBX (which is included).
Author: Rob McIntosh
Comments: to Rob @ Compuserve (100413,1342)
Version: 1.2
*** See Below for changes since First Release ***
If all you want is a screen saver then copy RedTop.SCR
to your Windows directory and PicClip.vbx to your Windows\System
directory. You can then configure in in the Control Panel
Program.
For developers wanting to write their own Savers Read on....
I have included the source code for RedTop to illustrate
how simple it is to create screen savers in Visual Basic. You
are welcome to use the code as a base for your own screen savers.
The source code is fully commented and should be fairly simple to
follow. I have tried to make it obvious where code is common to
all screen savers and which is specific to RedTop.
Please note that the Startup is via the main Sub in main.bas
This decides which form to show, the screen saver or the
configuration form. Screen Savers in general must be passed one
of two parameters; /c for the configuration form and /s for the
saver itself. For development this can be set in the Options
menu of VB. Red Top maintains it's configuration details in the
Control.ini file in section [Screen Saver.Red Top]. The
password feature operates in exactly the same was as the
standard Savers. However the code for encrypting password is in
a Static library for C coders. As such it is not available
directly to vb programmers. To get around this problem I have
implemented my own, very simple, password routine which is kept
in the ini file section as above. The implications of this is
that changing the password in Red Top will only affect Red Top
and not any other Saver. The converse is also true. One last
thing to know is that when you "make exe file" your own Saver
make the filename myscrsav.SCR and the application title
"SCRNSAVE :My Screen Saver" Your Screen Saver will not opperate
correctly if you don't. The Application Title after the colon
is what it will be listed as under the Control Panel.
Version History
1.0 (29-Sep-94) First Release
1.1 (14-Nov-94) Internal Version (Never Released)
1.2 (29-Nov-94) Enhancement Release
Fixed Password validation to Uppercase. All new passwords are
converted to uppercase. The Validation now being insensitive
to case. Nb you may need to manually remove your old password
after reinstalling this screen saver. Edit your control.ini file
in the windows directory and change the following in the
[Screen Saver.Red Top] Section
Password=
PWprotected=0
This will remove your old password.
Made the saver forms the Topmost form and System Modal. This now
acts the same way as all other screen savers. That is, if you
have the clock program as "Always on Top". Then it will not show
through the screen saver. When the screen saver is finally turned
off then the clock will revert to being "Always on Top". Making
the forms System modal also stops you from getting out of the
saver by alt-tab or ctrl-Esc etc.
Added a timer to the Failed Password form so that it times
out after 30 seconds, just like the enter password form.
Added the Version field...
I didn't think I would need this :->
I remembered to include the Picclip.vbx control this time !
Finally,
Thanks to all those who have commented on Redtop, I hope you find
that this new release will resolve all of the "features" of the
first version.
Rob McIntosh
(Crewe, Cheshire, UK)